package com.compunit.composite.a;

import org.compunit.Provide;
import org.compunit.Require;

import com.compunit.composite.a.interfaces.IPrinter;
import com.compunit.composite.a.interfaces.IStamper;

@Provide({IPrinter.class})
@Require({IStamper.class})
public class RedPrinter extends AbstractPrinter implements IPrinter {

	@Override
	protected void doPrint(final String output) {
		System.err.println(output);
	}

	@Override
	public void deactivate() throws Exception {
		System.out.println("RedPrinter shutting down.");
	}
}
